package day4;

public class Test2 {

	public static void main(String[] args) {
		Test2 m = new Test2();
		int b = m.add(1,2,3,4,5,6);
		System.out.println(b);
	}
	public int add(int...arr) {
		int b = 0;
		for(int i=0;i<arr.length;i++) {
			b += arr[i];
		}
		return b;
	}

}
